package com.lkd.controller;

import com.lkd.dto.TaskTypeDTO;
import com.lkd.entity.TaskType;
import com.lkd.service.TaskService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Z.lx
 * @Date: 2025/8/24 19:52
 * @Description:
 **/
@RestController
@RequestMapping("/api/task-service/taskType")
@Slf4j
@AllArgsConstructor
public class TaskTypeController {
    private final TaskService taskService;
    /**
     * @Description 获取所有工单类型
     * @Param [taskId]
     * @Date 2025/8/23 16:26
     **/
    @GetMapping("/list")
    public List<TaskType> getAllTaskType(){
        log.info("获取所有工单类型");
        return taskService.getAllType();
    }
}
